package cn.sciento.farm.devicemanager.common.constant;

/**
 * @author wumu
 * @version V1.0
 * @date 5/11/18
 * @time 12:39 PM
 */
public interface DeviceImgConstant {

    //centos临时文件
    String LINUX_TMP_DIR = "/tmp/";

    /**
     * 1. type
     * 2. 时间
     * 3. 用户id
     * 4. 摄像头编号
     * 5. 唯一标识
     */
    String KEY_TEMPLATE = "%s/%s/%s_%s_%s";

    /**
     * 1. type
     * 2. UUID
     */
    String SIMPLE_TEMPLATE = "%s/%s";

    String USER_TEMPLATE = "%s/%s/%s";

    String NAME_TEMPLATE = "SC%s";

    String TYPE_PREFIX = "device_manager/";

    //临时
    String USER = TYPE_PREFIX + "user";

    //头像
    String TYPE_AVATAR = TYPE_PREFIX + "avatar";

    //摄像头
    String TYPE_CAMERA = TYPE_PREFIX + "camera";

    //农机
    String TYPE_MACHINERY = TYPE_PREFIX + "machinery";

    //生产日志
    String TYPE_PRODUCT_LOG = TYPE_PREFIX + "productLog";

    //用户的logo
    String TYPE_USER_LOGO = TYPE_PREFIX + "userLogo";

    //用户的android app
    String TYPE_USER_ANDROID = TYPE_PREFIX + "androidApp";

    //未处理的图片，可能以后会用
    String TYPE_TMP = TYPE_PREFIX + "tmp";


}
